@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-pencil:before{content:"\270f"}.glyphicon-trash:before{content:"\e020"}
html, body{
	height: 100%;
  margin: 0;
}

body{
  background-color: #f4f4f4;
  color: #666;
  font-family: arial;
  font-size: 14px;
  padding-top: 10px;
}

footer{
  width: 750px;
	position: relative;
  clear:both;
	background-color: rgba(3,3,3,0.3);
	color:white;
  margin: -20px auto 5px auto;
  padding: 5px 21px;
  text-align: center;
}

img.logo {
    text-align: center;
    margin: auto;
    display: block;
    padding-bottom: 20px;
}

.container{
  width: 750px;
  border: 1px solid #ccc;
  margin: 20px auto;
  padding: 20px;
  border-top:#83cd39 3px solid;
  min-height: -webkit-calc(100% - 130px);     /* Chrome */
  min-height: -moz-calc(100% - 130px);     /* Firefox */
  min-height: calc(100% - 130px);     /* native */
}

.clearfix{
  clear: both;
}

ul{
  padding: 0px;
  margin: 0px;
}

h1, h2, h3, p{
  padding: 5px 0px;
  margin-bottom: 0px;
}
p{
  margin: 0px;
}

a{
  color: #404137;
  text-decoration: none;
}

nav{
  background: #404137;
  color: white;
  overflow: auto;
  height: 60px;
  padding: 20px 0 0 10px;
  font-size: 18px;
}
nav li{
  float: left;
  list-style: none;
}
nav a{
  padding:10px;
  margin: 0 10px;
  color: white;
}

nav a.active, nav a:hover{
  background: #83cd39;
  color: black;
  border-radius: 5px;
}

.meta{
  padding: 7px;
  border: 1px solid #ccc;
  background: #ccc;
}

a.more, a.btn{
  display: inline-block;
  background: #404137;
  color: white;
  padding: 10px;
}
a.more{
  position:absolute;
  bottom: 5px;
  right: 0px;
}
a.btn{
  margin-right: 2px;
}
.post{
  border-bottom: 1px solid #ccc;
  padding-bottom: 40px;
  position: relative;
}
.post .body{
  padding: 5px;
  min-height: 100px;
  line-height: 21px;
  border: 1px solid #eee;
  margin-top: -4px;
  margin-bottom: 5px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  background-color: #fdfdfd;
  margin-bottom:15px;
}

.head-title{
  margin-bottom: 10px;
}

form {
    margin-top: 25px;
}

input, select, textarea{
  margin-bottom: 15px;
}
label{
  display: inline-block;
  width: 180px;
  float: left;
}

input[type='password'], input[type='text'],input[type='email'], select, textarea{
  padding: 3px;
  height: 20px;
  width: 200px !important;
  border: 1px solid #ccc;
}


select{
  height: 28px !important;
  padding: 3px !important;
  display: flex;
  line-height:1;
  align-items: center;
}

textarea{
  height:70px;
  width: 400px;
}
input[type='submit']{
  display: inline-block;
  background: #404137;
  color: white;
  padding: 10px;
  width: 80px;
  border: 0;
  cursor: pointer;
}
input[type='submit']:hover{
  background: #83cd39;
  color: black;
}

#cke_body {
    clear: both;
    margin-bottom: 15px;
}

.alert{
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  list-style: none;
}

.alert-danger{
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

ul.success li{
  padding: 15px;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d9e9c6;
  list-style: none;
}

img.thumb{
  width: 100%;
  height: 100%;
}

span.tag {
    background-color: #53a700;
    border-radius: 6px;
    padding: 1px;
    font-weight: bold;
    margin: 0 10px;
}
span.tag a{
  color: white;
}

.comments {
    margin-top: 25px;
}

.comments input.btn.btn-default {
    width: 122px;
}

.box {
    position:relative;
    margin-top: 20px;
    padding: 15px;
    background-color: rgb(249, 255, 195);
    border: 1px solid #ccc;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
}
.group{
  width: 100%;
  display: inline-flex;
  justify-content: flex-start;
  align-items: baseline;
}
.group label {
    float: left;
    width: 100px;
    height: 100%;
    font-weight: bold;
    display: inline-table;
}

.group .body{
  width: 100%;
}

.comments .meta {
    position: absolute;
    bottom: 0px;
    right: 0px;
    font-size: 8px;
    color: black;
    background-color: transparent;
    border: 0;
}

.pull-right{
  clear:both;
  content: '';
  float: right;
}

/* RSS 订阅按钮样式 */
.rss-subscribe {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.rss-subscribe:hover {
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.5);
  transform: translateY(-2px);
}

.btn-rss {
  display: inline-flex;
  align-items: center;
  background: white;
  color: #ff6a00;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-rss:hover {
  background: #fff5f0;
  color: #ff6a00;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.rss-icon {
  font-size: 20px;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.rss-text {
  font-size: 16px;
}

.rss-formats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rss-format-link {
  color: white;
  font-size: 13px;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.2);
}

.rss-format-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-1px);
}

.rss-formats .separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

/* Toast 通知样式 */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.toast {
  background: linear-gradient(135deg, #83cd39 0%, #6ab82e 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.hide {
  opacity: 0;
  transform: translateX(400px);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.toast-message {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  padding-right: 15px;
  line-height: 1.4;
}

.toast-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* 错误类型的 toast */
.toast.error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

/* 警告类型的 toast */
.toast.warning {
  background: linear-gradient(135deg, #ffd93d 0%, #f6c23e 100%);
  color: #333;
}

.toast.warning .toast-close {
  color: #333;
}

/* 信息类型的 toast */
.toast.info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 邮件发送功能样式 */
.mail-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.mail-section:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  background: white;
  color: #667eea;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-mail:hover:not(:disabled) {
  background: #f0f3ff;
  color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-mail:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mail-icon {
  font-size: 20px;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

.mail-text {
  font-size: 16px;
}

.mail-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-recipient,
.mail-subject {
  color: white;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.mail-recipient:hover,
.mail-subject:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.mail-info .separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.mail-result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-message {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 15px;
}

.success-message p {
  margin: 5px 0;
  font-size: 14px;
}

.success-message a {
  color: #0c5460;
  text-decoration: underline;
  font-weight: bold;
}

.success-message a:hover {
  color: #062c33;
}

.error-message {
  background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
  color: #721c24;
  border: 1px solid #f1b0b7;
  border-radius: 6px;
  padding: 15px;
}

.error-message p {
  margin: 5px 0;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mail-section {
    margin: 15px -10px;
    border-radius: 0;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .btn-mail {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 18px;
  }

  .mail-info {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .mail-info .separator {
    display: none;
  }

  .mail-recipient,
  .mail-subject {
    text-align: center;
  }
}
